﻿﻿<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
	<html>
	<head>
	<title>betalife | 北京时间</title>
	</head>
	<body>

	<div id="container" class="clearfix">
	<!-- if (type==img){class="box col2"} elseif(type==img+texte){class="box col2"}else{class="box col4"} -->

	<c:forEach items="${recents}" var="item">
		<c:choose>
			<c:when test="${item.type==3}">
				<c:set var="divclass" value="box col4"></c:set>
			</c:when>
			<c:otherwise>
				<c:set var="divclass" value="box col2"></c:set>
			</c:otherwise>
		</c:choose>
	
		<div class="${divclass}" style="cursor: pointer" onclick="location.href='${baseurl}${item.href}';">
			<c:if test="${item.type==1 or item.type==2}">
				<p><img src="${item.thumb}" /></p>
			</c:if> 
			<c:if test="${item.type==2 or item.type==3}">
				<p>${item.digest}</p>
			</c:if>
			<p>${item.name}@${item.rootName}</p>
		</div>
	</c:forEach>

	<!-- #container -->
	</div>

	</body>
